home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / LANG / AOF / DECAOF / decaof / makefile < prev    next >
Makefile  |  1992-11-20  |  1KB  |  51 lines

  1. # Makefile for DecAOF
  2. #
  3. # Andy Duplain, BT Customer Systems, Brighton, UK.  duplain@btcs.bt.co.uk
  4.  
  5. CC=    cc
  6. CFLAGS= -DBSD42 -O
  7. LIBS=
  8. INSTALL=install -s
  9. INSTDIR=$${HOME}/bin
  10. BACKUPFILE=$${HOME}/tmp/decaof.tar.Z
  11.  
  12. # edit no more
  13.  
  14. OBJS=    main.o decode.o misc.o io.o error.o
  15. SRCS=    main.c decode.c misc.c io.c error.c
  16.  
  17. decaof:    $(OBJS)
  18.     $(CC) -o $@ $(OBJS) $(LIBS)
  19.  
  20. depend:    $(SRCS)
  21.     makedepend $(CFLAGS) -- $(SRCS)
  22.     mv makefile makefile.old
  23.     sed -f nosysdep.sed < makefile.old > makefile
  24.     rm -f makefile.old makefile.bak
  25.  
  26. install:    decaof
  27.     $(INSTALL) decaof $(INSTDIR)
  28.  
  29. clean:
  30.     rm -f decaof $(OBJS) endian.h mkendian core a.out *~
  31.  
  32. backup:    clean
  33.     (cd ..; tar cfv - decaof | compress -f > $(BACKUPFILE))
  34.  
  35. decaof.h:    endian.h
  36.  
  37. endian.h:    mkendian
  38.     mkendian > endian.h
  39.  
  40. mkendian:    mkendian.c
  41.     $(CC) $(CFLAGS) -o mkendian mkendian.c
  42.  
  43. # DO NOT DELETE THIS LINE -- make depend depends on it.
  44.  
  45. main.o: decaof.h cproto.h io.h misc.h error.h
  46. decode.o: decaof.h cproto.h io.h main.h misc.h
  47. decode.o: error.h 
  48. misc.o: decaof.h
  49. io.o: decaof.h cproto.h error.h 
  50. error.o: error.h cproto.h 
  51.